<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>最美医生推荐</title>
    <?php require 'templates/common/head.html'; ?>

    <style type="text/css">
        .divleft{width: 5%; float: left;min-height: 8px; text-align:center; border-right: solid 1px #d5d5d5; margin-right: 1% }
        .divleft2{width: 20%; min-width: 20%; min-height: 10px; float: left; text-align:center; border-right: solid 1px #d5d5d5; margin-right: 0% }
        .divright{ width: 8%; float:right; text-align: center;}
        .divleft3{ width: 15%; float: left; min-width:15%;min-height: 10px;text-align:center;  border-right: solid 1px #d5d5d5; margin-right: 2% }

    </style>

</head>
<body>
<script src="../business/resource/js/jquery-1.11.1.min.js"></script>

<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">最美医生推荐</h3></div>


        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="col-xs-4 text-justify" style="width:100%;">
                                <div class="divleft"><b >医生姓名</b></div>
                                <div class="divleft2"><b >联系方式</b></div>
                                <div class="divleft2"><b >医生简介</b></div>
                                <div class="divleft"><b  >推荐人姓名</b></div>
                                <div class="divleft3"><b  >推荐人联系方式</b></div>

                                <div class="divleft"><b  >状态</b></div>
                                <div class="divleft3"><b >推荐日期</b></div>
                                <div class="divright"><b  >操作</b></div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <?php foreach($vote_list as $key => $value):?>
                    <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#DFF0D8;";}else{ echo "border-top: solid 2px #ffffff;";}?>">
                    <div class="row">
                        <div class="col-xs-4 text-justify" style="width:100%;">

                            <div class="divleft"><span><?= $value['dc_name'] ?></span></div>
                            <div class="divleft2"><span><?= $value['dc_tel'] ?></span></div>
                            <div class="divleft2"><span><?= $value['dc_descript'] ?></span></div>

                            <div class="divleft"><span><?= $value['referrer'] ?></span></div>
                            <div class="divleft3"><span><?= $value['referrer_tel'] ?></span></div>
                            <div class="divleft"><span><?php  echo  $value['state']?></span></div>
                            <div class="divleft3"><span><?= $value['time'] ?></span></div>
                            <div class="divright"><span> <a class="btn btn-primary btn-xs" href="<?=$vote_form_url?>&id=<?= $value['id']?>">编辑</a></span>


                            </div>


                        </div>
                    </div>
                </div>
                <?php endforeach; ?>

            </div>
        </div>
    </div>
   <?= $page->showpage()?>

</div>

</div>

<?php require 'templates/common/foot.html'; ?>

</body>
</html>